package student.pack;

import java.util.ArrayList;
import java.util.List;

public class StudentManager {

	public static void main(String[] args) {
		System.out.println("Hello!");
		List<Student> studList = new ArrayList<Student>();
		Student student = new Student();
		student.setId(1);
		student.setName("Ivan");
		student.setSurname("Ivanov");
		student.setFathername("Ivanovich");
		student.setDateBirth("12.02.1990");
		student.setAddress("Vostok strit");
		student.setTelephone(123456);
		student.setNameFac("II");
		student.setKurs(3);
		student.setGroup(2);
		studList.add(student);

		student = new Student();
		student.setId(2);
		student.setName("Aleksey");
		student.setSurname("Fomin");
		student.setFathername("Ivanovich");
		student.setDateBirth("23.04.1990");
		student.setAddress("Moskowskaja strit");
		student.setTelephone(4359872);
		student.setNameFac("AC");
		student.setKurs(2);
		student.setGroup(1);
		studList.add(student);

		for (Student st : studList) {
			if (args[0].equals(st.getNameFac()))
				System.out.println(st);

		}

	}

}
